package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.feign.fallback.MemberFeignServiceFallBack;
import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 会员远程服务
 *
 * @author xiaoping
 * @create 2020/7/3 19:46
 * @since 1.0.0
 */
@FeignClient(value = "gulimall-member",fallback = MemberFeignServiceFallBack.class)
public interface MemberFeignService {

    /**
     * 获取会员的收货地址信息
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

}
